package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * --- 人生两件事：走路与识人。道曲难行，路直景稀。---
 *
 * @author LHN
 * @date 2024/7/23
 * @desc
 */
public class Phone {

    private String img;
    private long productId;

    private String productName;

    private String category;
    private String brand;

    private String purchaser;
    private BigDecimal purchaseCost;
    private long purchaseQuantity;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "img='" + img + '\'' +
                ", productId=" + productId +
                ", productName='" + productName + '\'' +
                ", category='" + category + '\'' +
                ", brand='" + brand + '\'' +
                ", purchaser='" + purchaser + '\'' +
                ", purchaseCost=" + purchaseCost +
                ", purchaseQuantity=" + purchaseQuantity +
                ", deliveryDate=" + deliveryDate +
                ", createdAt=" + createdAt +
                '}';
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getPurchaser() {
        return purchaser;
    }

    public void setPurchaser(String purchaser) {
        this.purchaser = purchaser;
    }

    public BigDecimal getPurchaseCost() {
        return purchaseCost;
    }

    public void setPurchaseCost(BigDecimal purchaseCost) {
        this.purchaseCost = purchaseCost;
    }

    public long getPurchaseQuantity() {
        return purchaseQuantity;
    }

    public void setPurchaseQuantity(long purchaseQuantity) {
        this.purchaseQuantity = purchaseQuantity;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}
